package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

/**
 * <p>
 * IUserService
 * </p>
 *
 * @author flyduck
 * @since 2025/2/25
 */
public interface IUserService extends IService<User> {
    void reduceBalanceById(Long id, Integer money);

    List<User> queryUsers(UserQuery userQuery);

    UserVO queryUserAndAddressById(Long id);

    List<UserVO> queryUserAndAddressByIds(List<Long> ids);

    PageDTO<UserVO> queryUsersPage(UserQuery userQuery);
}
